<?php 
$request = system_controller_front::getInstance()->getRequest();
$furl = (string) $this->url('account/index');
if(1 && $callback = $request->getQuery('callback')) {
	$furl = $callback;
}
?>
<div id="mainDiv">
	<div id="tree">
		<div id="treeData">	
			<h1><?php echo $this->language('Dashboard');?></h1>	
			<hr/>
			<div class="item">
				<strong><?php echo $this->language('My Account');?></strong>
				<ul>
					<li><a href="<?php echo $this->url('account/setting');?>"><?php echo $this->language('General Setting');?></a></li>
					<li><a href="<?php echo $this->url('account/password');?>"><?php echo $this->language('Change Password');?></a></li>
					<li><a href="<?php echo $this->url('account/email');?>"><?php echo $this->language('Change Email');?></a></li>
				</ul>
			</div>
			<hr/>
			<div class="item">
				<strong><?php echo $this->language('Picture');?></strong>
				<ul>
					<li><a href="<?php echo $this->url('picture/category/index');?>"><?php echo $this->language('Category Manage');?></a></li>
					<li><a href="<?php echo $this->url('picture/special/index');?>"><?php echo $this->language('Special Manage');?></a></li>
					<li><a href="<?php echo $this->url('picture/photo/index');?>"><?php echo $this->language('Photo Manage');?></a></li>
				</ul>
			</div>
			<hr/>
			<div class="item">
				<strong><?php echo $this->language('Resource');?></strong>
				<ul>
					<li><a href="<?php echo $this->url('resource/keyword/index');?>"><?php echo $this->language('Keyword Manage');?></a></li>
					<li><a href="<?php echo $this->url('resource/file/index');?>"><?php echo $this->language('File Manage');?></a></li>
					<li><a href="<?php echo $this->url('resource/link/index');?>"><?php echo $this->language('Link Manage');?></a></li>
				</ul>
			</div>
			<hr/>
			<div class="item">
				<strong><?php echo $this->language('Collection');?></strong>
				<ul>
					<li>
						<a href="<?php echo $this->url('collection/site/index');?>"><?php echo $this->language('Site Manage');?></a>
						<ul class="sub"><?php 
							$concept = new collection_site_concept($this->user->getLang());
							foreach($concept->fetchAll() AS $row) {
								echo '<li><a href="' . $this->url('collection/item/index', array('site_id' => $row->getId())) . '">';
								echo $this->escape($row->getTitle()) . '</a>';
								if(!$row->getIsActive()) {
									echo '<br/><em class="red">Invalid</em>';
								}
								echo '</li>';
							}
						?></ul>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div id="switch"><a class="switch">Switch</a></div>
	<div id="frame"><iframe src="<?php echo $furl;?>" id="mainFrame" name="mainFrame"></iframe></div>
</div>
	

